package com.ymatou.iapi.sellertrading.service;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;

public class DiscountorderCall extends YmatouAutoTestCall {
	
	private static String opurl ="/api/orderoperate/discountorder";

	
	public DiscountorderCall() {
		super(EnvSetup.getSystemUrl("sellertrading_iapi"),opurl,"POST","JSON");
	}
	
	public DiscountorderCall(int sellerId , int UserId) {
		super(EnvSetup.getSystemUrl("sellertrading_iapi"),opurl+"?sellerid="+sellerId+"&UserId="+UserId,"POST","JSON");
	}
	
	public DiscountorderCall(int sellerId) {
		super(EnvSetup.getSystemUrl("sellertrading_iapi"),opurl+"?sellerid="+sellerId,"POST","JSON");
	}
	public DiscountorderCall(String UserId) {
		super(EnvSetup.getSystemUrl("sellertrading_iapi"),opurl+"?UserId="+UserId,"POST","JSON");
	}
	
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	
/*	public static void updateMap()throws Exception{
		try{
			JSONObject discountorderBean=JsonBeanHelper.getJsonBean("com.ymatou.iapi.sellertrading/Discountorder/discountordercalltpl.json");
			Map<String, Object> updateMap=new HashMap<String,Object>();
			updateMap.put("Discount", value);
			updateMap.put("Freight", value);
			updateMap.put("OrderId", value);
		}
	}*/

	
	
	public static void main(String args[]){
		new DiscountorderCall(3383, 3383).callAndGetReturnData();
	}
	
	

}
